<?php echo $this->doctype(); ?>
<html lang="pt-br">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		
		<?php echo $this->headMeta(); ?>
        <?php echo $this->headTitle(); ?>

		<!-- Bootstrap -->
		<?php echo $this->headLink()->prependStylesheet($this->baseUrl('assets/bootstrap/css/bootstrap.css')); ?>
		
		<!-- Custom styles for this template -->
		<?php echo $this->headLink()->prependStylesheet($this->baseUrl('assets/css/offcanvas.css')); ?>
		
		<?php echo $this->headLink()->prependStylesheet($this->baseUrl('assets/css/style.css')); ?>

		<!-- Just for debugging purposes. Don't actually copy this line! -->
		<!--[if lt IE 9]><?php echo $this->headScript()->prependFile($this->baseUrl('assets/js/ie8-responsive-file-warning.js')); ?><![endif]-->

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
		  <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
	</head>
	<body>
	
	   <?php $auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session("admin")); ?>
	   <?php if ($auth->hasIdentity()): ?>
	   <div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
			<div class="container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<!-- <a class="navbar-brand" href="#">Votei.Net</a> -->
				</div>
				<div class="collapse navbar-collapse">
					<ul class="nav navbar-nav">
						<li class="active"><a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'index'), null, true); ?>">Home</a></li>
						<li><a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'administrador'), null, true); ?>">Administradores</a></li>
						<li><a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'candidato'), null, true); ?>">Candidatos</a></li>
					</ul>
					<ul class="nav navbar-nav navbar-right">
						<li><a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'auth', 'action' => 'logout'), null, true); ?>">Logout</a></li>
					</ul>
				</div><!-- /.nav-collapse -->
			</div><!-- /.container -->
		</div><!-- /.navbar -->
		<?php endif; ?>
		
		<div class="container">
		
			<?php echo $this->layout()->content; ?>
		
		</div>

		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
		<!-- Include all compiled plugins (below), or include individual files as needed -->
		<script src="<?php echo $this->baseUrl('assets/bootstrap/js/bootstrap.min.js'); ?>"></script>
		
		<script src="<?php echo $this->baseUrl('assets/js/bootstrap3-typeahead.js'); ?>"></script>
		<script src="<?php echo $this->baseUrl('assets/js/typeahead.js'); ?>"></script>
		
		<script src="<?php echo $this->baseUrl('assets/js/bootbox.min.js'); ?>"></script>
		
		<script src="<?php echo $this->baseUrl('assets/js/offcanvas.js'); ?>"></script>
		<script src="<?php echo $this->baseUrl('assets/js/holder.js'); ?>"></script>
		<script src="<?php echo $this->baseUrl('assets/js/script.js'); ?>"></script>
	</body>
</html>